/* 导航组件样式 */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-menu > ul > li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c00;
}

/* 下拉菜单样式 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: block;
    flex-direction: column;
}

.nav-menu li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #666;
    font-size: 14px;
    border-radius: 0;
    width: 100%;
    text-align: left;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #c00;
}

/* 导航按钮样式 */
.nav-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-login {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.btn-login:hover {
    background: #f8f9fa;
    border-color: #c00;
    color: #c00;
}

.btn-partner {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-partner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.btn-financing {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-financing:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 移动端汉堡菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 下拉箭头 */
.dropdown-toggle i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

/* 按钮显示控制 */
.desktop-buttons {
    display: flex;
}

.mobile-buttons {
    display: none;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-nav {
        padding: 0 20px;
    }
    
    .nav-menu ul {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .nav-menu ul {
        gap: 15px;
    }
    
    .nav-menu a {
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
    }
    
    /* 隐藏桌面端按钮 */
    .desktop-buttons {
        display: none !important;
    }
    
    /* 移动端导航菜单 - 简化版本 */
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: -100% !important;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        background: #fff !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1) !important;
        transition: left 0.3s ease !important;
        z-index: 1001 !important;
        overflow-y: auto !important;
        padding: 20px 0 !important;
    }
    
    .nav-menu.active {
        left: 0 !important;
    }
    
    .nav-menu ul {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .nav-menu > ul > li {
        border-bottom: 1px solid #f0f0f0 !important;
        width: 100% !important;
    }
    
    .nav-menu a {
        display: block !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        color: #333 !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        color: #c00 !important;
        background: #f8f9fa !important;
    }
    
    /* 移动端下拉菜单 */
    .dropdown-menu {
        position: static !important;
        opacity: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: #f8f9fa !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    .has-dropdown.active .dropdown-menu {
        opacity: 1 !important;
        max-height: 200px !important;
        padding: 10px 0 !important;
    }
    
    .dropdown-menu a {
        padding: 10px 40px !important;
        font-size: 14px !important;
        color: #666 !important;
    }
    
    .dropdown-menu a:hover {
        background: #e9ecef !important;
        color: #c00 !important;
    }
    
    /* 移动端按钮 */
    .mobile-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        padding: 20px !important;
        border-top: 1px solid #f0f0f0 !important;
        margin-top: 20px !important;
    }
    
    .mobile-buttons .btn {
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 14px !important;
        border-radius: 25px !important;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding: 15px 20px;
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .nav-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .nav-menu ul {
        padding: 0 15px;
    }
    
    .nav-menu a {
        padding: 12px 0;
        font-size: 15px;
    }
    
    .mobile-buttons {
        padding: 15px;
    }
    
    .mobile-buttons .btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}
